{case value="date"}
{php}
$importDatetimePicker = 1;
if (strpos($field['name'],'[')) {
$field['id']=str_replace(']','',str_replace('[','',$field['name']));
}else{
$field['id']=$field['name'];
}
{/php}
<dl class="item_{$field.name} {$field.extra_class}">
    <dt>{$field.title}</dt>
    <dd>
        <div class="date-input"><i></i><input name="{$field.name}" type="text" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"  id="{$field.name}" class="input rule-date-input sDatepicker" value="{notempty name='field.value'}{$field.value}{/notempty}" ></div>
        {notempty name="field.tip"}<span class="Validform_checktip" style="position: absolute;left:100px;left: 304px;top: 6px;">{present name="field.confirm"}{eq name="field.confirm" value="required"}<span class="red">*</span> {/eq}{/present}{$field.tip}</span>{/notempty}
    </dd>
</dl>
{/case}